#pragma once
#include "commoninc.h"

class CSettingsWnd : public QFrame{
    Q_OBJECT
public:
    CSettingsWnd(QWidget *p = nullptr);
    ~CSettingsWnd();

private:
    void initUI();
    void initMainWnd();

    QString getModifersKeyName(int);

Q_SIGNALS:
    void turnBack();

protected:
    void keyPressEvent(QKeyEvent *event);

private:
    QPushButton *_hideBtn;
    QGroupBox *_mainWnd;

    QLineEdit *_recordKeyEdit;
    QPushButton *_modifyKeyBtn;
    bool _isRecord;
    bool _haveFuncBtn;
};